import request from '@/utils/request'

// 查询标题页列表
export function listTitleSheet(query) {
  return request({
    url: '/titleSheet/titleSheet/list',
    method: 'get',
    params: query
  })
}

// 查询标题页详细
export function getTitleSheet(projectId) {
  return request({
    url: '/titleSheet/titleSheet/' + projectId,
    method: 'get'
  })
}

// 新增标题页
export function addTitleSheet(data) {
  return request({
    url: '/titleSheet/titleSheet',
    method: 'post',
    data: data
  })
}

// 修改标题页
export function updateTitleSheet(data) {
  return request({
    url: '/titleSheet/titleSheet',
    method: 'put',
    data: data
  })
}

// 删除标题页
export function delTitleSheet(projectId) {
  return request({
    url: '/titleSheet/titleSheet/' + projectId,
    method: 'delete'
  })
}

// 导出标题页
export function exportTitleSheet(query) {
  return request({
    url: '/titleSheet/titleSheet/export',
    method: 'get',
    params: query
  })
}